package com.yq.controller;

import com.yq.model.User;
import com.yq.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author: 杨庆
 * @since: 2022.9.5 19:37
 * @description: mybatis的测试
 */
@RestController
public class UserController {

    @Autowired
    UserService userService;

    @RequestMapping("/user")
    public List<User> selectAll(){
        List<User> list = userService.selectAll();
        return list;
    }


}
